import {Http} from '@/utils'

export function _getCommentDetail(id) {
  return Http({
    url: '/comment/' + id,
    method: 'get'
  })
}

export function _getReplyList(id, data) {
  return Http({
    url: '/reply/comment/' + id,
    method: 'get',
    params: {
      ...data
    }
  })
}

export function _isCollection(id) {
  return Http({
    url: '/collection/isCollection',
    method: 'get',
    params: {
      cid: id
    }
  })
}

export function _postCollection(id) {
  return Http({
    url: '/collection',
    method: 'post',
    body: {
      cid: id
    }
  })
}

export function _delCollection(id) {
  return Http({
    url: '/collection/collection',
    method: 'delete',
    body: {
      cid: id
    }
  })
}
